<?php

require_once "ACBController.php";

/**
 * Description of LoginController
 *
 * @author A.J. Janssen
 */
class LoginController extends ACBController
{
    function __construct()
    {
        parent::__construct();
    }
    
    function tryLogin()
    {
        if ($this->auth->tryLogin()) //Login succeeded
            //Forward user to index page
            header('Location: index.php');
        else //Login failed
            $this->acb->assign('failure', 'Inloggen mislukt');
    }
}

?>
